home *** CD-ROM | disk | FTP | other *** search
- Path: news1.sympatico.ca!news
- From: Gisele Swinson <gisele.swinson@sympatico.ca>
- Newsgroups: comp.lang.c
- Subject: Settle a bet please
- Date: 29 Mar 1996 04:26:19 GMT
- Organization: Sympatico
- Message-ID: <4jfopb$o9n@news1.sympatico.ca>
- NNTP-Posting-Host: ppp1046.on.sympatico.ca
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22MII (Windows; I; 16bit)
-
- In C language, how do they calculate the length of an array.
-
- example
-
- To declare a string "My Name"
-
- is it char name[7] = "My Name"
- or
- is it chat Name[8] = "My Name"
-
- There is a battle in my class whether to include the NULL in the
- array size.
-
- I would appreciate any input you might have.
-
- Thanks
-
- Gisele
-
-